import Vue from 'vue'
import Router from 'vue-router'
import index from './index.vue'
import sort from './components/sort.vue'
import shopping from './components/shopping.vue'
import detial from './components/goods/detial.vue'
import good from './components/shopping/good.vue'
import mine from './components/mine.vue'
Vue.use(Router)

export default new Router({
    routes: [{
            path: "/",
            redirect: "/index"

        },
        {
            path: "/index",
            component: index,
            meta: {
                keepAlive: true
            }
        },
        {
            path: "/sort",
            component: sort,
            meta: {
                keepAlive: true
            }
        },
        {
            path: "/shopping",
            component: shopping,
            meta: {
                keepAlive: true
            }
        },
        {
            path: "/detial",
            component: detial,
            meta: {
                keepAlive: false
            }
        },
        {
            path: "/good",
            component: good,
            meta: {
                keepAlive: false
            }
        },
        {
            path: "/mine",
            component: mine,
            meta: {
                keepAlive: true
            }
        }
    ]
})